<div class="featuredRow">
  <h2><%=h @course.name %></h2>
</div>
<div class="featuredRow">
  <div id="caja1left" class="caja" style="float: left">
    <h3>
      <%= hide_on_click 'Eventos', 'uniqueId0' %>
    </h3>
    <div id="uniqueId0">
      <ul>
        <% for e in @events %>
          <li><%=h e.name %></li>
        <% end %>
        <span class="linkED"><%= link_to 'A&ntilde;adir evento', :controller => 'event', :action => 'add', :id => @course %></span>
      </ul>
    </div>
  </div>
  <div id="caja2right" class="caja" style="float: right">
    <h3>
      <%= hide_on_click 'Asignaciones', 'uniqueId1' %>
    </h3>
    <div id="uniqueId1">
      <ul>
        <% for a in @assignments %>
          <li><%=h a.name %>
          <%- if a.has_ungraded_answers? -%>
*
          <%- end -%>
          </li>
        <% end %>
        <span class="linkED"><%= link_to 'A&ntilde;adir tarea', :controller => 'event', :action => 'add_assignment', :id => @course %></span>
      </ul>
    </div>
  </div>
</div>
<br />
<br />
<div id="caja3left" class="featuredRow">
  <div class="caja" style="float: left;">
    <h3>
      <%= hide_on_click 'Integrantes', 'uniqueId2' %>
    </h3>
    <div id="uniqueId2">
      <ul>
        <% for a in @users %>
          <%= link_to h(a.login), {:controller => 'account', :action => 'view'}, :id => a %>
          &nbsp;&nbsp;
          <% if a.is_student? %>
            <%= @average[a] || 0.0 %>
          <% end %>
        <% end %>
      </ul>
    </div>
  </div>
</div>
<br />

